package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class Credit.
 * <p>
 * 	The property is:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>original_title</li>
 * 		<li>poster_path</li>
 * 		<li>release_date</li>
 * 		<li>title</li>
 * 	</ul>
 * </p>	
 * @author Tanmoy
 */
public abstract class Credit extends Base implements Serializable {

	private static final long serialVersionUID = 6796336705884295116L;

	@SerializedName("original_title")
	protected String originalTitle;
	
	@SerializedName("poster_path")
	protected String posterPath;
	
	@SerializedName("release_date")
	protected String releaseDate;
	
	@SerializedName("title")
	protected String title;
	
	/**
	 * Default Constructor.
	 */
	public Credit() {
		
	}

	/**
	 * Gets the original title.
	 *
	 * @return 
	 * 		The original title
	 */
	public String getOriginalTitle() {
		return originalTitle;
	}

	/**
	 * Sets the original title.
	 *
	 * @param originalTitle 
	 * 		The new original title
	 */
	public void setOriginalTitle(String originalTitle) {
		this.originalTitle = originalTitle;
	}

	/**
	 * Gets the poster path.
	 *
	 * @return 
	 * 		The poster path
	 */
	public String getPosterPath() {
		return posterPath;
	}

	/**
	 * Sets the poster path.
	 *
	 * @param posterPath 
	 * 		The new poster path
	 */
	public void setPosterPath(String posterPath) {
		this.posterPath = posterPath;
	}

	/**
	 * Gets the release date.
	 *
	 * @return 
	 * 		The release date
	 */
	public String getReleaseDate() {
		return releaseDate;
	}

	/**
	 * Sets the release date.
	 *
	 * @param releaseDate 
	 * 		The new release date
	 */
	public void setReleaseDate(String releaseDate) {
		this.releaseDate = releaseDate;
	}

	/**
	 * Gets the title.
	 *
	 * @return 
	 * 		The title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * Sets the title.
	 *
	 * @param title 
	 * 		The new title
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("original_title:").append("\"").append(originalTitle).append("\"").
			append(",").
			append("poster_path:").append("\"").append(posterPath).append("\"").
			append(",").
			append("release_date:").append("\"").append(releaseDate).append("\"").
			append(",").
			append("title:").append("\"").append(title).append("\"").
			append("}");
		return builder.toString();
	}
}
